#ifndef PERSONSUPPLIER_H
#define PERSONSUPPLIER_H
#include <QList>
#include "person.h"

class QString;

class PersonSupplier : public Person
{
public:
    PersonSupplier();
    PersonSupplier(const QString supplierNumber, const QString ownerName, const QString contactName,
                   const QString tel, const QString email, const QString supplierBankAccount,
                   const QString address, const QString supplierRemark)
        :Person(supplierNumber,contactName, tel, email, address)
    {
        m_ownerName = ownerName;
        m_supplierBankAccount = supplierBankAccount;
        m_supplierRemark = supplierRemark;
    }
//    PersonSupplier & operator =(const PersonSupplier &other)
//    {
//        if (this == &other)
//            return *this;
////        this->m_personID = other.get_personID();
////        this->m_ownerName = other.get_ownerName();
////        this->m_personName = other.get_personName();
////        this->m_personTel = other.get_personTel();
////        this->m_personEmail = other.get_personEmail();
////        this->m_supplierBankAccount = other.get_supplierBankAccount();
////        this->m_personAdress = other.get_personAdress();
////        this->m_supplierRemark = other.get_supplierRemark();
//        this->set_personID(other.get_personID());
//        this->m_ownerName = other.get_ownerName();
//        this->set_personName(other.get_personName());
//        this->set_personTel(other.get_personTel());
//        this->set_personEmail(other.get_personEmail());
//        this->m_supplierBankAccount = other.get_supplierBankAccount();
//        this->set_personAdress(other.get_personAdress());
//        this->m_supplierRemark = other.get_supplierRemark();

//        return *this;
//    }

    QString get_ownerName() const {return m_ownerName;}
    QString get_supplierBankAccount() const {return m_supplierBankAccount;}
    QString get_supplierRemark() const {return m_supplierRemark;}

private:
    QString m_ownerName;
    QString m_supplierBankAccount;
    QString m_supplierRemark;
};

typedef QList <PersonSupplier> supplierList;
#endif // PERSONSUPPLIER_H
